package com.qinge.blog.service;

import java.io.IOException;
import java.util.Map;

/**
 * @author QDW
 * @date 2022/5/4 19:17
 * @description 验证码Service层
 **/
public interface CaptchaService {
    /**
     * @author QDW
     * @date 2022/5/4 19:18
     * @description 生成token
     * @param captcha
     * @return java.util.Map<java.lang.String,java.lang.Object>
     **/
    Map<String, Object> createUUID(String captcha);


    /**
     * @author QDW
     * @date 2022/5/4 19:19
     * @description 生成captcha验证码
     * @param
     * @return java.util.Map<java.lang.String,java.lang.Object>
     **/
    Map<String, Object> captchaCreator() throws IOException;

    /**
     * @author QDW
     * @date 2022/5/4 19:19
     * @description 验证输入的验证码是否正确
     * @param UUID
     * @param inputCode
     * @return java.lang.String
     **/
    boolean versifyCaptcha (String UUID, String inputCode);

}
